import { useSnippetsStore } from '@renderer/stores'

export function useIpaddress () {
  const setSnippets = useSnippetsStore(state => state.setSnippets)

  const getIpaddress = () => {
    setSnippets([
      {
        id: 0, 
        title: 'ip 地址',
        content: window.api.getIpadress(),
        category_id: 0,
        created_at: '',
      },
    ])
  }

  return {
    getIpaddress,
  }
}
